package com.yk.points.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yk.common.annotation.Excel;
import com.yk.common.core.domain.BaseEntity;

/**
 * 商品积分对象 points_goods
 * 
 * @author xufei
 * @date 2025-04-28
 */
@Data
public class PointsGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 兑换积分 */
    @Excel(name = "兑换积分")
    private Integer points;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 图片 */
    @Excel(name = "图片")
    private String pictures;

    /** 说明 */
    @Excel(name = "说明")
    private String statement;

    /** 上架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "上架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date shelveTime;

    /** 已兑换数量 */
    @Excel(name = "已兑换数量")
    private Integer num;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("points", getPoints())
            .append("status", getStatus())
            .append("pictures", getPictures())
            .append("statement", getStatement())
            .append("shelveTime", getShelveTime())
            .append("num", getNum())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
